package com.java01.apache.commons.io;

import java.io.InputStream;
import java.net.URL;

import org.apache.commons.io.IOUtils;

public class ReadURLStream {

	public static void main(String[] args) throws Exception {
		InputStream in = new URL("http://www.java01.com").openStream();
		try {
			System.out.println(IOUtils.toString(in));
		} finally {
			IOUtils.closeQuietly(in);
		}
	}
}
